<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/cms/group/sitegrouplist" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>分组管理</h1>
    </div>
    <div class="filterbar">
      <label for="">站点列表：
        <select name="sitelist" id="J_sitelists" data-type="{$type}">
          <option value="0">请选择</option>
          <volist name="slist" id="slist">
            <option value="{$slist['siteid']}" <eq name="slist.siteid" value="$ssid">selected</eq>>{$slist['name']}</option>
          </volist>
        </select>
      </label>
    </div>
    <hr>
    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="width:20px">
                <input type="checkbox" class="toggle-all">
              </th>
              <th  style="width:30px">ID</th>
              <th style="">名称</th>
              <th style="">备注</th>
              <th style="">状态</th>
              <th style="">操作</th>
            </tr>
          </thead>
          <tbody>
            <notempty name="list">
              <volist name="list" id="group">
                <tr data-id="{$group['id']}">
                  <td>
                    <input type="checkbox" class="toggle" />
                  </td>
                  <td>{$group['id']}</td>
                  <td>{$group['name']}</td>
                  <td>{$group['description']}</td>
                  <td>
                    <eq name="group.status" value="0">关闭
                      <else/>开启</eq>
                  </td>
                  <td>
                    <a href="{:URL('cms/Group/addGroup',array('id'=>$group['id'],'sid'=>$ssid,'type'=>$type))}">修改</a> |
                    <a href="javascript:;" class="A_del">删除</a>
                  </td>
                </tr>
              </volist>
            </notempty>
          </tbody>
        </table>
      </div>
    </div>
    <div class="datas-ft" style="display: none;">
      <div class="actions">
        <a href="{:URL('cms/Group/addGroup',array('sid'=>$ssid,'type'=>$type))}" class="btn">添加分组</a>
        <a href="javascript:;" id="J_del" class="btn">批量删除</a>
      </div>  
    </div>
  </div>
</body>

</html>
